package com.meixiang.entity.fund;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by xyj on 2016/6/15.
 */
public class FundOptionalBean implements Parcelable {

    private String fund_id;
    private String fund_name;
    private String day_rate;
    private String week_rate;
    private String mon_rate1;
    private String mon_rate3;
    private String mon_rate6;
    private String year_rate1;
    private String year_rate0;
    private String url;
    private String type;
    private String nav;

    protected FundOptionalBean(Parcel in) {
        fund_id = in.readString();
        fund_name = in.readString();
        day_rate = in.readString();
        week_rate = in.readString();
        mon_rate1 = in.readString();
        mon_rate3 = in.readString();
        mon_rate6 = in.readString();
        year_rate1 = in.readString();
        year_rate0 = in.readString();
        url = in.readString();
        type = in.readString();
        nav = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(fund_id);
        dest.writeString(fund_name);
        dest.writeString(day_rate);
        dest.writeString(week_rate);
        dest.writeString(mon_rate1);
        dest.writeString(mon_rate3);
        dest.writeString(mon_rate6);
        dest.writeString(year_rate1);
        dest.writeString(year_rate0);
        dest.writeString(url);
        dest.writeString(type);
        dest.writeString(nav);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<FundOptionalBean> CREATOR = new Creator<FundOptionalBean>() {
        @Override
        public FundOptionalBean createFromParcel(Parcel in) {
            return new FundOptionalBean(in);
        }

        @Override
        public FundOptionalBean[] newArray(int size) {
            return new FundOptionalBean[size];
        }
    };

    public String getFund_id() {
        return fund_id == null ? "" : fund_id;
    }

    public void setFund_id(String fund_id) {
        this.fund_id = fund_id;
    }

    public String getFund_name() {
        return fund_name == null ? "" : fund_name;
    }

    public void setFund_name(String fund_name) {
        this.fund_name = fund_name;
    }

    public String getDay_rate() {
        return day_rate == null ? "" : day_rate;
    }

    public void setDay_rate(String day_rate) {
        this.day_rate = day_rate;
    }

    public String getWeek_rate() {
        return week_rate == null ? "" : week_rate;
    }

    public void setWeek_rate(String week_rate) {
        this.week_rate = week_rate;
    }

    public String getMon_rate1() {
        return mon_rate1 == null ? "" : mon_rate1;
    }

    public void setMon_rate1(String mon_rate1) {
        this.mon_rate1 = mon_rate1;
    }

    public String getMon_rate3() {
        return mon_rate3 == null ? "" : mon_rate3;
    }

    public void setMon_rate3(String mon_rate3) {
        this.mon_rate3 = mon_rate3;
    }

    public String getMon_rate6() {
        return mon_rate6 == null ? "" : mon_rate6;
    }

    public void setMon_rate6(String mon_rate6) {
        this.mon_rate6 = mon_rate6;
    }

    public String getYear_rate1() {
        return year_rate1 == null ? "" : year_rate1;
    }

    public void setYear_rate1(String year_rate1) {
        this.year_rate1 = year_rate1;
    }

    public String getYear_rate0() {
        return year_rate0 == null ? "" : year_rate0;
    }

    public void setYear_rate0(String year_rate0) {
        this.year_rate0 = year_rate0;
    }

    public String getUrl() {
        return url == null ? "" : url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getType() {
        return type == null ? "" : type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getNav() {
        return nav == null ? "" : nav;
    }

    public void setNav(String nav) {
        this.nav = nav;
    }
}
